<h2>Screen pages</h2>
<table>
    <tr>
        <th>Title</th><th>Edit</th><th>Delete</th><th>Pages</th>
    </tr>
<?php
foreach ($screens as $screen):
?>
    <tr>
        <td><?php echo $screen['Screen']['title'];?></td><td><?php echo $html->link('Edit',array('action'=>'edit/'.$screen['Screen']['id']));?></td><td><?php echo $html->link('Delete',array('action'=>'delete/'.$screen['Screen']['id']));?></td><td><?php echo $html->link('Edit pages',array('controller'=>'spages','action'=>'index/'.$screen['Screen']['id']));?></td>
    </tr>
<?php
endforeach;
?>
</table>  
<?php echo $html->link('New Screen',array('action'=>'add'));?>                                                                                                                                                                                                                                                 
